#ifndef _TOPSYNC_FUNCTIONS_H_
#define _TOPSYNC_FUNCTIONS_H_

#include "General.h"

extern unsigned char mainBuff[200];


extern void InitialiseTopSyncMessageHeader(ToPSyncMsgHeader* header,
                                    ToPSyncMsgSet messageSetId,
                                    ToPSyncMsgLength messageLength,
						                        ToPSyncMsgType messageType,
                                    ToPSyncMsgSequenceNumber sequenceNumber,
                                    ToPSyncMsgSequenceNumber originatingSequenceNumber,
                                    Bool endOfMessage,
                                    ToPSyncConfigResult result,
                                    uint32 securityKey);

extern void WriteToPSyncMessageHeader(uint8** data, const ToPSyncMsgHeader* header);

#endif // _TOPSYNC_FUNCTIONS_H_

// EOF

